package cn.stylefeng.guns.modular.reimbursement.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 * 报销表
 * </p>
 *
 * @author
 * @since 2019-10-14
 */
@TableName("reimbursement")
public class Reimbursement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发生日期
     */
    @TableField("occur_date")
    private Date occurDate;

    /**
     * 金额
     */
    @TableField("amount")
    private Float amount;

    /**
     * 备注
     */
    @TableField("memo")
    private String memo;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    @TableField("project_id")
    private Integer projectId;

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getOccurDate() {
        return occurDate;
    }

    public void setOccurDate(Date occurDate) {
        this.occurDate = occurDate;
    }

    public Float getAmount() {
        return amount;
    }

    public void setAmount(Float amount) {
        this.amount = amount;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    @Override
    public String toString() {
        return "Reimbursement{" +
                "id=" + id +
                ", occurDate=" + occurDate +
                ", amount=" + amount +
                ", memo=" + memo +
                ", userId=" + userId +
                "}";
    }
}
